'use strict';

const Controller = require('../../core/common');

class SettingsController extends Controller {
  async index() {
    const { ctx } = this;

    const data = await ctx.service.v1.setups.findAll();

    this.success(data);
  }

  async show() {

  }

  async create() {

    const { ctx } = this;

    const data = await ctx.service.v1.setups.create(ctx.request.body);

    this.success(data);
  }
}

module.exports = SettingsController;